home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Macintosh Technotes and Q&As / technotes / tn / tn_1003.cw < prev    next >
Encoding:
Text File  |  1998-04-27  |  22.9 KB  |  190 lines  |  [TEXT/R*ch]

  1. —BOBO*üdHZHZHZ‹
  2. )‡tÿÿH)‡`@á
  3. ÿÿ)û4ÿ-Zÿÿÿ Tom MaremaaxHHÚ(ÿáÿáùEG(üHHØ(d'`Δÿÿ*H0∫‹ p/ÀzÊ€    Õ)fl)‡‹)‡˛Êz*L@c¯j )û‰4°ÿÿÿÿÿÿÿÿ(—DSETr¨( )‡ì)ûü)‡è*°m)úÔ]°m)flqÈ4#∑#∫#>#Ä#Å+á######+5#z#U4g:¬:éAøGG(G•à¨à£34
  4. L
  5. à€\
  6. ]
  7. "
  8. <
  9. ÅÓ àá
  10. Ó 45
  11. æ
  12. Uà¡f gj
  13. ∑
  14. ¬¯
  15. ¶
  16. é à¢÷
  17. !ø
  18. "w
  19. $‚
  20. %ú
  21. $
  22. %2*82#)ü‘UÔ)ü\2
  23. T E C H N O T E : 
  24. On the Deferred 
  25. Task Manager
  26. By Matthew Xavier Mora 
  27.   
  28. Apple Developer Technical Support (DTS)
  29.  
  30. This Note highlights two points ‹ interrupt latency, and task record ownership ‹ that might be unclear after reading the chapter ÒDeferred Task ManagerÓ in Inside Macintosh:Processes.
  31. This Note is intended for all developers who need to install a lengthy interrupt task capable of running with all interrupts enabled.
  32.  
  33. About Deferred Task Latency
  34. There may be significant latency incurred between installing a deferred task with DTInstall and when that task is performed. This time is not deterministic and cannot be controlled. Real-time response cannot be guaranteed on Macintosh computers with or without the use of deferred tasks.
  35.  
  36.  
  37.  
  38.  
  39.  
  40. About the Ownership of the DeferredTask Reco#rd
  41. When you install a deferred task with DTInstall, you are giving your DeferredTask record to the system; the system owns the record until the routine designated by the DeferredTask recordÕs dtAddr field is entered. During the time the system owns a DeferredTask record, you must not change any of the fields of that record.  
  42. Similarly, you must not depend on the contents of the record when it is owned by the system. The system is free to alter the record in any fashion while it has ownership and restores the record to its original state priÔor to invoking the deferred task. You must not install a DeferredTask record which is already owned by the system. Finally, you must not use the dtReserved field for any purpose; it should be set to zero prior to installing a deferred task with DTInstall.
  43. Further Reference
  44. ¥     Inside Macintosh: Processes, Chapter 6, The Deferred Task Manager
  45. ¥     develop, Issue 13, Asynchronous Routines on the Macintosh
  46. Change History
  47. This Technote was originally written by Jim Luther, in July, 1992. Most of the original information has been incorporated into Inside Macintosh: Processes, 
  48. The references section has been updated. Information found in the chapter ÒDeferred Task ManagerÓ in Inside Macintosh:Processes, has been deleted.
  49. ZÿÿN°DSET≠ÿÿ.Hl9ƒÿÿÿÿÿÿ*0°√Øfi°ÿÿ6ÿÿ*ØfiDSET ÿÿ.HQ=i‡^ÿÿÿÿÿÿ)flLfim°ÿÿ√õ°ÿÿn√°ÿÿö°ÿÿ6ÿÿ*ØfiDSET≠ÿÿ.HnjBgÿÿÿÿÿÿ)üTØfi°ÿÿ…ÿÿ*Øfi°\°\DSETT{}@∞)flp)‡˘)‡‘)flP°*H¥¥ œ"    à§ w[ˇP[¥ΔWWl≤[¡‰
  50. ≥)flX≥
  51. Technote 1003        ///          Release 1.0       © Apple Computer, Inc.      ///              ///          Page      of    2 FNTMCUTSDSUM$ Tom MaremaaHDNISTYLÈ©ÿÿ@STYL)‡H)ü@)ü)fl€)fl@*()fl°)üì˚ÿÿP
  52. ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  53. ÿÿÿÿ;
  54. ÿÿÿÿ
  55. ÿÿ    ÿÿ
  56. ÿÿÿÿÿÿÿÿÿÿ    ÿÿÿÿ        ÿÿÿÿÿÿ
  57.     ÿÿÿÿÿÿ #    ÿÿÿÿÿÿ +    ÿÿÿÿÿÿ
  58. 4    ÿÿÿÿÿÿ:    ÿÿÿÿÿÿA    ÿÿ    ÿÿ G    ÿÿÿÿÿÿÿÿ
  59. ÿÿÿÿÿÿ# ÿÿÿÿÿÿ# ÿÿÿÿ# ÿÿÿÿÿÿ#
  60. ÿÿÿÿÿÿ+ÿÿÿÿ+ÿÿÿÿÿÿ4
  61. ÿÿÿÿÿÿ:ÿÿÿÿÿÿ:
  62. ÿÿÿÿÿÿ: ÿÿÿÿ!ÿÿA  ÿÿ"ÿÿG ÿÿ$ÿÿG
  63. ÿÿ%ÿÿG ÿÿÿÿ 
  64. ÿÿ
  65. ÿÿ! ÿÿÿÿ" ÿÿ    ÿÿ#
  66. ÿÿ
  67. ÿÿ$ÿÿ ÿÿ%ÿÿÿÿ ÿÿ&ÿÿÿÿ
  68. ÿÿ'ÿÿÿÿÿÿ%(‹ÿÿÿÿÿÿ)0ÿÿÿÿ* 0ÿÿÿÿ+&0ÿÿÿÿ,'0 ÿÿÿÿ-(0 ÿÿÿÿ.)0     ÿÿÿÿ/*0 
  69. ÿÿÿÿ0,0  ÿÿÿÿ1-0  ÿÿÿÿ2.0
  70. ÿÿÿÿ3/0ÿÿÿÿ400&ÿÿÿÿ510&ÿÿÿÿ%62‹ÿÿÿÿÿÿ73022ÿÿ*85022ÿÿ+96022ÿÿÿÿ:7025ÿÿ-;8025ÿÿ.<9025    ÿÿ/=;025
  71. ÿÿ0><025 ÿÿ1?=025 ÿÿÿÿ@>023ÿÿÿÿA?023ÿÿÿÿB@026ÿÿ5CB026ÿÿÿÿ%DC‹ÿÿÿÿÿÿED0CCÿÿÿÿFE0CC ÿÿÿÿGF0CC ÿÿÿÿHH0CE!ÿÿÿÿII0CE"ÿÿÿÿJJ0CE"    ÿÿÿÿKK0CE"
  72. ÿÿÿÿLL0CE" ÿÿÿÿMM0CE" ÿÿÿÿNN0CD#ÿÿÿÿOO0CD#ÿÿÿÿPP0CF!ÿÿÿÿQQ0CF"ÿÿÿÿ%RR‹ÿÿÿÿÿÿSS0RR$ÿÿÿÿTT0RRÿÿÿÿUU0RRÿÿÿÿVV0RT%    ÿÿÿÿWW0RTÿÿÿÿXX0RT     ÿÿÿÿYY0RT!    ÿÿÿÿZZ0RT"    ÿÿÿÿ[[0RT#    ÿÿÿÿ\\0RS&$
  73. ÿÿÿÿ]]0RS&%
  74. ÿÿÿÿ^^0RU&    ÿÿÿÿ__0RU'ÿÿÿÿ%``‹ÿÿÿÿ(ÿÿaa0``')ÿÿÿÿbb0``*ÿÿÿÿcc0``+ ÿÿÿÿdd0`b,ÿÿÿÿee0`b-ÿÿÿÿff0`b.ÿÿÿÿgg0`b/ÿÿÿÿhh0`b0ÿÿÿÿii0`b1ÿÿÿÿjj0`a(6
  75. ÿÿÿÿkk0`a(7
  76. ÿÿÿÿll0`c4
  77. ÿÿÿÿmm0`c5
  78. ÿÿÿÿnn‹ÿÿÿÿ(ÿÿoo0nn) ÿÿbpp0nn*ÿÿÿÿqq0nn2ÿÿÿÿrr0np,ÿÿÿÿss0np3ÿÿÿÿtt0np8ÿÿÿÿuu0np9ÿÿÿÿvv0np:ÿÿÿÿww0no)6
  79. ÿÿÿÿxx0nq<ÿÿÿÿyy‹ÿÿÿÿ;ÿÿzz0yy*=ÿÿÿÿ{{0yy>ÿÿÿÿ||0y{ ÿÿÿÿ}}0y{!ÿÿÿÿ~~0y{"ÿÿÿÿ0y{#ÿÿÿÿ••0yz+Aÿÿÿÿ™™0yz+Bÿÿÿÿ≠≠Øÿÿÿÿÿÿ∞∞8≠≠ÿÿÿÿ≥≥8≠≠ÿÿÿÿ∑∑8≠≠ÿÿÿÿ∫∫8≠≠ÿÿÿÿΩΩ8≠≠ÿÿÿÿ√√8≠≠ÿÿÿÿ≈≈8≠≠ÿÿÿÿ……8≠≠ÿÿÿÿ——8≠≠ÿÿÿÿ‘‘8≠≠ÿÿÿÿŸŸ8≠≠ÿÿÿÿ⁄⁄8≠≠ÿÿÿÿ∂∂Øÿÿÿÿ, ÿÿΔΔ8∂∂-!ÿÿÿÿŒŒ8∂∂."ÿÿÿÿ‚‚8∂∂/#ÿÿÿÿ„„8∂∂0$ÿÿÿÿ‰‰8∂∂0%ÿÿÿÿ8∂∂0&ÿÿÿÿˆˆ8∂∂0'ÿÿÿÿ˜˜8∂∂0(ÿÿÿÿ˘˘8∂∂0)ÿÿÿÿ˙˙8∂∂0*ÿÿÿÿ ˚˚Øÿÿÿÿ+ÿÿ˝˝8˚˚,ÿÿÿÿ˛˛8˚˚-ÿÿÿÿˇˇ8˚˚.ÿÿÿÿıı8˚˚/ÿÿÿÿƒƒ8˚˚0ÿÿÿÿ   +1ÿÿÿÿ¡¡
  80. 42ÿÿÿÿ¢¢A3ÿÿÿÿ££ÿÿ4
  81. ÿÿÿÿ€€ÿÿ#5ÿÿÿÿ¥¥    ÿÿ61ÿÿ¥œœÿÿ¥61ÿÿÿÿ§§ÿÿ¥71ÿÿÿÿ¨¨ÿÿ8
  82. ÿÿ ˘ÿÿHASH‘
  83. $Ú àù"ô◊‘`ôؑnÑÛÔ6ÑÛÔDà"ÔÎ&á´fiãã%8◊yãµÕáRêä ëå$&
  84. 
  85. ¢ ¡&
  86.     ø Ä,Ä,!Ä,2Å !€ b
  87. A£
  88. A ¨-, ub
  89. ,˝Q˛vˇ˝ıÀƒ,∞Q≥v∑˝∫º.ÀΩå√
  90. ≈. /…T—y‘ıŸÃ⁄,8ΔQIŒv4‚˝5„À5‰å5    
  91. 5ˆ    /5˜    T5˘    y5˙8;<=>?C04O\P]C2U3ø@ A    0J    1K    2L    3MCwJjKk    (F
  92. GB    5:y·Py˝NÙ?OÙ    HQù,ù9ùBHù    $Gù    3I‡JS‡>)‡ Eaÿ>oEï7{-X.Y/Z0[F^`V/f0g1h2i0mJl&W._
  93. "T
  94. #U
  95. $p
  96. %q~|}*•…”™ûHx‡/e‡9u‡:v‡1r‡7s‡8t‡Ddfl0z'cÌ&5& Ü& E&
  97. ),k¸),k»),kß*k’A& œA
  98. 7§L: Qf¸eg∂h“çm'h’ÑÚj–◊alq”º!r§él%r”◊a#t“◊Å˚z«áoz¶ÕÄ(}Bod}©ÓÖ≠…9ÿÿ
  99. CHAR*ÌÖÿÿÿÿ ÿÿ ÿÿÿú    ÿÿÿfl 
  100. ÿÿ ÿÿÿû
  101. ÿÿ•ÿÿÿéÿÿÿÿÿÿ"ÿ† ÿÿ ÿóàÿÿÿÿ
  102. ÿÿÿÿ
  103. ÿÿ&ÿÿ
  104. ÿÿÿÿÿÿÿÿÿÿÿúÿÿ
  105. ÿòÓ'ÿØ
  106. ÿÿÿ÷ àÿÿÿÿ
  107. ÿÿ"
  108. (
  109. '
  110. ÿÿ%
  111. ÿÿ
  112. ÿÿ     
  113.     ÿÿ
  114.     ÿÿ
  115.     ÿÿ.    ÿÿ
  116.     ÿÿ
  117.  
  118. 
  119.     /    ÿÿ*
  120. 2
  121. $/
  122. ÿÿ        '        
  123. ÿÿ*ÿÿ&    ÿÿ&ÿÿ  ÿÿ&
  124. ,&    ÿÿÓ
  125. ÿÿàÿÿ àÿÿ ÿ÷àÿÿÿ÷
  126. à    ÿÿ ÿÿÿÿ"    àÿÿ ÿÿàú'ÿÿHASH+0/104-E.≥")3:#;&D%)*!    "    )(    *     
  127. 6à 3à
  128. 2è87
  129.  
  130.   1
  131. Ó1à4à8à 5RC?
  132. CELL)‡d∫ÿÿÿÿÿ,ÿÿÿ"ÿÿÿÿü
  133. ÿÿÿÿø
  134. ÿÿøÿÿÿÿÿÿÿÿÿÿ    ÿÿü
  135. ÿÿü
  136. ÿÿø
  137. ÿÿø
  138. ÿÿü
  139. ÿÿÿÿü
  140. ÿÿü
  141. ÿÿøÿÿøøÿÿÿÿÿÿÿÿx≥
  142. ÿÿØ$ ÿÿx• ÿÿØ 
  143. ÿÿÿÿÿÿÿÿÿÿ    ÿÿø
  144. ÿÿø ÿÿ ÿÿ
  145. ÿÿÿÿøÿÿÿÿûÿÿøÿÿøÿÿÿÿÿÿÿÿ    ÿÿÿÿøÿÿÿ ÿÿÿ
  146. ÿÿü
  147. ÿÿü ÿÿøÿÿøÿÿø    ÿÿÿÿø ÿÿø
  148. ÿÿ@ÿÿÿÿø
  149. ÿÿÿÿÿÿø ÿÿ(Ó
  150. ÿÿ√s Δ@ÿÿHASHÿ    
  151.       
  152. $ %
  153. 67(xŸx∂Ø1Ø3øøø    ø
  154. ø
  155. )ü ü >     
  156. ! " #&'
  157. ./01
  158. 45;*2*èA…‘Bú=ú
  159. -ú,ú<ú3ú8ú9ú:‡    + Æÿÿ
  160. GRPH)‡fÿÿÿÿÿ,ÿÿÿBÿÿÎÿÿ
  161. ÿÿÎÿÿ
  162. ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿ|ÿÿHASH
  163.     Ò
  164. Î   .2ÿÿl
  165. RULR)fl\fiÿÿÿÿÿÿÿÿ‡@ÿÿ[ÿÿiÿªB<ÿÿiÿbBÿÿaÿ˚ÿÿiÿzBÿÿíÿbÿôNN.åæfiAdÛånfiD*fiD*fiApÜ∂hfiD*fiA√Ü£âfiD*€îfiD*®ìÛê∫ÛåìfiA ÛånfiD*fiÿÿiÿjBÿÿÿzBÿÿÿjBÿÿ $ÿÿÿªB<ÿÿ $ÿÿ     $ÿÿÿbBÿÿÿÿ$ÿÿÿ˚ÿÿHÿÿlÿÿΔÿÿ´ÿÿØÿÿÿbÿôNN.åæfiAdÛånfiD*fiD*fiApÜ∂hfiD*fiA√Ü£âfiD*€îfiD*®ìÛê∫ÛåìfiA ÛånfiD*fiÿÿüÿÿ ÿÿDÿÿ    hÿÿ
  166. ‘ÿÿ °ÿÿÿÿ$ÿÿHÿÿlÿÿΔÿÿ´ÿÿØÿÿüÿÿ ÿÿDÿÿ    hÿÿÿÿ$ÿÿHÿÿlÿÿΔÿÿ´ÿÿÿ@<2ÿÿHASHÿœî>
  167. W>ÿ+,,0 Q-v.˝/À00˛
  168. ‡
  169. ,Qv˝Àå 
  170. /TyıÃ,!Q"v#˝$À%å&    
  171. '    /(    T)    y*
  172. 0®     ≤
  173. '(G®(ûG®@ÿ1@‡b©ÿÿLKUP     !"#$%&'()
  174. * +,-./ 01234567
  175. 89:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~•™≠∞≥∑∫Ω√≈…—‘Ÿ⁄∂ΔŒ‚„‰ˆ˜˘˙˚˝˛ˇıƒ ¡¢£€¥œ§¨‰ÿÿ$NAMEDefault
  176. Default SSHeaderBodyFooterFootnoteFootnote Index
  177. HeadingH2.H2 Code.CV Heading1.H1
  178. Italic HeadingH3.H3Bullet    ChecklistNumberClassic2 Blue Gray 1C Blue Gray 2RColorful`
  179. 3D Table 1n
  180. 3D Table 2y
  181. Accounting≠Harvard∂Legal˚Diamond´DFNTM    HelveticaGeneva:H
  182. Letter Gothic    
  183.   
  184. ÿÿPalatinoETBL@FNTM“CUTS»DSUMÃHDNIïSTYLùETBL[aÿfl‡üûúùø›ñòóôõö÷
  185.